package com.xframe.xdal.core.handler.valueTake;


import java.sql.Blob;
import java.sql.ResultSet;
import java.sql.SQLException;

public class BlobValueTakingStrategy implements IValueTakingStrategy{
    @Override
    public Object getValue(ResultSet resultSet, int colIndex) {
        try {
            Blob blob = resultSet.getBlob(colIndex);
            return blob.getBinaryStream();
        } catch (SQLException e) {
            e.printStackTrace();
            return null;
        }
    }
}
